export const option = function () {
  return {
    refreshBtn: true,
    columnBtn: true,
    border: true,
    stripe: true,
    index: true,
    editBtn: true,
    delBtn: true,
    align: 'center',
    addBtn: true,
    menu: true,
    indexLabel: '序号',
    column: [
      {
        label: '账户名称',
        prop: 'bankAccountNameA',
        maxlength: 20,
        span: 12,
        rules: [
          {
            required: true,
            message: '请输入账户名称',
            trigger: 'blur'
          }
        ],
        minWidth: 100
      },
      {
        label: '银行账号',
        prop: 'bankAccountA',
        maxlength: 20,
        span: 12,
        rules: [
          {
            required: true,
            message: '请输入银行账号',
            trigger: 'blur'
          }
        ],
        minWidth: 100
      },
      {
        label: '开户行名称',
        prop: 'bankNameA',
        labelWidth: 100,
        span: 12,
        formslot: true,
        // change:({getColumnByProp, form})=>{
        //   const { dicData } = getColumnByProp('bankCode')
        //   console.log(dicData)

        // },
        // type: 'select',
        // remote: true,
        // props: {
        //   label: 'bankName',
        //   value: 'bankName'
        // },
        // dicUrl: `/biz-api/pv-supplier/bank/getBankInfo?bankName={{key}}`,
        rules: [
          {
            required: true,
            message: '请输入开户行名称',
            trigger: 'blur'
          }
        ],
        minWidth: 150
      },
      {
        label: '开户行行号',
        prop: 'bankCodeA',
        labelWidth: 100,
        span: 12,
        formslot: true,
        // type: 'select',
        // remote: true,
        // props: {
        //   label: 'bankCode',
        //   value: 'bankCode'
        // },
        // change:({getColumnByProp, form})=>{
        //   const { dicData1 } = getColumnByProp('bankName')
        //   console.log(dicData1)

        // },
        // dicUrl: `/biz-api/pv-supplier/bank/getBankInfo?bankCode={{key}}`,
        rules: [
          {
            required: true,
            message: '请输入开户行行号',
            trigger: 'blur'
          }
        ],
        minWidth: 100
      }
    ]
  }
}
